<?php

namespace app\api\controller;
header('Access-Control-Allow-Origin:*');
class Index extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'only' => ''
        ],
    ];

    /**
     * 消息中心
     */
    public function message()
    {
        $result =  (new \app\api\logic\Index())->message();
        return $this->ajaxReturn($result);
    }

    /**
     * banner图
     */
    public function banner()
    {
        $result =  (new \app\api\logic\Index())->banner();
        return $this->ajaxReturn($result);
    }

    /**
     * 喇叭公告
     */
    public function horn()
    {
        $result =  (new \app\api\logic\Index())->horn();
        return $this->ajaxReturn($result);
    }

    /**
     * 线路测试
     */
    public function line()
    {
        $result =  (new \app\api\logic\Index())->line();
        return $this->ajaxReturn($result);
    }

    /**
     * 简易网址
     */
    public function url()
    {
        $result =  (new \app\api\logic\Index())->url();
        return $this->ajaxReturn($result);
    }

    /**
     * 联系我们
     */
    public function contact_us()
    {
        $result =  (new \app\api\logic\Index())->contact_us();
        return $this->ajaxReturn($result);
    }

    /**
     * 全部公告
     */
    public function notice()
    {
        $result =  (new \app\api\logic\Index())->notice();
        return $this->ajaxReturn($result);
    }
}